﻿do
	IGAS:NewAddon("IGAS_Studio")

	local _DB

	------------------------------------------------------------
	-- ScriptType
	------------------------------------------------------------
	_DB = CreateHelpDB(IGAS.GUI.Widget.SimpleHTML, "ScriptType")
	_DB:SetBaseHelpDB(CreateHelpDB(IGAS.GUI.Widget.Frame, "ScriptType"))

	------------------------------------------------------------
	-- Function
	------------------------------------------------------------
	_DB = CreateHelpDB(IGAS.GUI.Widget.SimpleHTML, "Function")
	_DB:SetBaseHelpDB(CreateHelpDB(IGAS.GUI.Widget.Frame, "Function"))

	_DB:AddCodeHelp("GetHyperlinkFormat", [=[Returns the format string used for displaying hyperlinks in the frame]=], [=[GetHyperlinkFormat()]=])
	_DB:AddCodeHelp("GetFont", [=[Returns the font instance's basic font properties]=], [=[GetFont()]=])
	_DB:AddCodeHelp("GetJustifyH", [=[Returns the font instance's horizontal text alignment style]=], [=[GetJustifyH()]=])
	_DB:AddCodeHelp("SetText", [=[Sets the text displayed as the button's label]=], [=[SetText("text")]=])
	_DB:AddCodeHelp("SetFontObject", [=[Sets the `Font` object from which the font instance's properties are inherited]=], [=[SetFontObject("name")]=])
	_DB:AddCodeHelp("GetShadowOffset", [=[Returns the offset of the font instance's text shadow from its text]=], [=[GetShadowOffset()]=])
	_DB:AddCodeHelp("GetHyperlinksEnabled", [=[Returns whether hyperlinks in the frame's text are interactive]=], [=[GetHyperlinksEnabled()]=])
	_DB:AddCodeHelp("SetShadowColor", [=[Sets the color of the font's text shadow]=], [=[SetShadowColor(shadowR, shadowG, shadowB, shadowAlpha)]=])
	_DB:AddCodeHelp("GetTextColor", [=[Returns the font instance's default text color]=], [=[GetTextColor()]=])
	_DB:AddCodeHelp("SetIndentedWordWrap", [=[Sets whether long lines of text are indented when wrapping]=], [=[SetIndentedWordWrap(indent)]=])
	_DB:AddCodeHelp("GetIndentedWordWrap", [=[Returns whether long lines of text are indented when wrapping]=], [=[GetIndentedWordWrap()]=])
	_DB:AddCodeHelp("GetJustifyV", [=[Returns the font instance's vertical text alignment style]=], [=[GetJustifyV()]=])
	_DB:AddCodeHelp("GetSpacing", [=[Returns the font instance's amount of spacing between lines]=], [=[GetSpacing()]=])
	_DB:AddCodeHelp("SetTextColor", [=[Sets the font instance's default text color]=], [=[SetTextColor(textR, textG, textB, textAlpha)]=])
	_DB:AddCodeHelp("SetFont", [=[Sets the font instance's basic font properties]=], [=[SetFont("filename", fontHeight, "flags")]=])
	_DB:AddCodeHelp("SetHyperlinksEnabled", [=[Enables or disables hyperlink interactivity in the frame]=], [=[SetHyperlinksEnabled(enable)]=])
	_DB:AddCodeHelp("SetSpacing", [=[Sets the font instance's amount of spacing between lines]=], [=[SetSpacing(spacing)]=])
	_DB:AddCodeHelp("SetJustifyV", [=[Sets the font instance's horizontal text alignment style]=], [=[SetJustifyV("justify")]=])
	_DB:AddCodeHelp("SetJustifyH", [=[Sets the font instance's horizontal text alignment style]=], [=[SetJustifyH("justify")]=])
	_DB:AddCodeHelp("GetFontObject", [=[Returns the `Font` object from which the font instance's properties are inherited]=], [=[GetFontObject()]=])
	_DB:AddCodeHelp("SetHyperlinkFormat", [=[Sets the format string used for displaying hyperlinks in the frame]=], [=[SetHyperlinkFormat("format")]=])
	_DB:AddCodeHelp("SetShadowOffset", [=[Sets the offset of the font instance's text shadow from its text]=], [=[SetShadowOffset(xOffset, yOffset)]=])
	_DB:AddCodeHelp("GetShadowColor", [=[Returns the color of the font's text shadow]=], [=[GetShadowColor()]=])
	------------------------------------------------------------
	-- Property
	------------------------------------------------------------
	_DB = CreateHelpDB(IGAS.GUI.Widget.SimpleHTML, "Property")
	_DB:SetBaseHelpDB(CreateHelpDB(IGAS.GUI.Widget.Frame, "Property"))

	_DB:AddCodeHelp("HyperlinksEnabled", [[whether hyperlinks in the frame's text are interactive]], IGAS:GetPropertyType("boolean"))
end
